﻿// ———————————————————————–
// <copyright file="Default.aspx.cs" company="The MITRE Corporation">
//    Copyright (c) 2010 The MITRE Corporation. All rights reserved.
//    Licensed under the Apache License, Version 2.0 (the "License");
//    you may not use this file except in compliance with the License.
//    You may obtain a copy of the License at
//    http://www.apache.org/licenses/LICENSE-2.0
//    Unless required by applicable law or agreed to in writing, software
//    distributed under the License is distributed on an "AS IS" BASIS,
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//    See the License for the specific language governing permissions and
//    limitations under the License.
// </copyright>
// ———————————————————————–
/////////////////////////////////////////////////////////////////////////////////////////////////
// Default.aspx.cs - "Constants For Accessing ICNET"
// Project: "ICNETSOA"- "ICNETREST"
//
// Language:    C#, .NET 4.0
// Platform:    Windows 7, VS 2010
// Author:      Don McGarry The MITRE Corporation
/////////////////////////////////////////////////////////////////////////////////////////////////

// Copyright (c) 2010 The MITRE Corporation. All rights reserved.
//
// NOTICE
// This software was produced for the U. S. Government
// under Contract No. FA8721-09-C-0001, and is
// subject to the Rights in Noncommercial Computer Software
// and Noncommercial Computer Software Documentation Clause
// (DFARS) 252.227-7014 (JUN 1995)
                
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ICNETServices;

namespace ICNETREST
{
  /// <summary>
  /// Contains the constants that outline the way to add, delete, or look at informatoin in the database. 
  /// </summary>
  public partial class Default : System.Web.UI.Page
  {
    /// <summary>
    /// Contains constants that outline how requests to the underlying ICNET database can be made from a browser. 
    /// </summary>
    /// <param name="sender">The object that sent the request.</param>
    /// <param name="e">The event data sent in with the page.</param>
    protected void Page_Load(object sender, EventArgs e)
    {
      this.Title = "IC.NET";
      this.PageLabel.Text = "IC.NET EDXL-DE Router Prototype - Virtual Machine Instance: " + ICNETSOAConstants.ICNETbaseURI;
      this.RawLabel.Text = ICNETSOAConstants.ICNETbaseURI + "/Data/{R1}/{R2}";
      this.ValueListLabel.Text = ICNETSOAConstants.ICNETbaseURI + "/ValueLists/{R1}/{R2}";
      this.FeedServiceLink.Text = ICNETSOAConstants.ICNETbaseURI + "/Feeds/{R1}/{R2}/?RoleURI={R3}";
      this.FeedServiceLink.NavigateUrl = ICNETSOAConstants.ICNETbaseURI + "/Feeds/All/GeoRSS";
      this.FeedServiceAltLink.Text = ICNETSOAConstants.ICNETbaseURI + "/Feeds/{R2}/?RoleURI={R3}&Role={R1}";
      this.FeedServiceAltLink.NavigateUrl = ICNETSOAConstants.ICNETbaseURI + "/Feeds/All/GeoRSS";
      this.FeedExample1.Text = ICNETSOAConstants.ICNETbaseURI + "/Feeds/All/GeoRSS";
      this.FeedExample1.NavigateUrl = ICNETSOAConstants.ICNETbaseURI + "/Feeds/All/GeoRSS";
      this.FeedExample2.Text = ICNETSOAConstants.ICNETbaseURI + "/Feeds/All/KML";
      this.FeedExample2.NavigateUrl = ICNETSOAConstants.ICNETbaseURI + "/Feeds/All/KML";
      this.FeedExample3.Text = ICNETSOAConstants.ICNETbaseURI + "/Feeds/IncidentCommander/GeoRSS?RoleURI=http://icnet.mitre.org/ValueLists/Roles/ICS";
      this.FeedExample3.NavigateUrl = ICNETSOAConstants.ICNETbaseURI + "/Feeds/IncidentCommander/GeoRSS?RoleURI=http://icnet.mitre.org/ValueLists/Roles/ICS";
      this.FeedExample4.Text = ICNETSOAConstants.ICNETbaseURI + "/Feeds/GeoRSS?RoleURI=http://icnet.mitre.org/ValueLists/Roles/ICS&Role=IncidentCommander";
      this.FeedExample4.NavigateUrl = ICNETSOAConstants.ICNETbaseURI + "/Feeds/GeoRSS?RoleURI=http://icnet.mitre.org/ValueLists/Roles/ICS&Role=IncidentCommander";
      this.PostDELink.Text = ICNETSOAConstants.ICNETbaseURI + "/PostDE/";
      this.PostDELink.NavigateUrl = ICNETSOAConstants.ICNETbaseURI + "/PostDE/";
      this.ValueListsLink.Text = ICNETSOAConstants.ICNETbaseURI + "/ValueLists.aspx";
      this.ValueListsLink.NavigateUrl = ICNETSOAConstants.ICNETbaseURI + "/ValueLists.aspx";
      this.CKWLink.Text = this.ValueListsLink.NavigateUrl + "/ContentKeywords";
      this.CKWLink.NavigateUrl = this.ValueListsLink.NavigateUrl + "/ContentKeywords";
    }

    public string BaseURI { get; set; }
  }
}